home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
1000 Apple LAN Literacy
/
1000 Apple LAN Literacy.iso
/
Apple LAN Literacy
/
Scrapbook 0
/
Scrapbook 0
/
background_8802.txt
< prev
next >
Wrap
Text File
|
1989-08-22
|
30KB
|
1,155 lines
-- background: 8802 from stack: in
-- bmap block id: 9085
-- flags: 4000
-- background id: 0
-- name: Notebook
----- HyperTalk script -----
on openbackground
global wherewecamefrom
if wherewecamefrom is empty then
set icon of bg btn "return" to 27451 -- gray
set autohilite of bg btn "return" to false
else
set icon of bg btn "return" to 4250
set autohilite of bg btn "return" to true
end if
end openbackground
-- This is a special version of this handler that needs to be in the
-- background so Hypercard can find the SSDialog in the bg script
-- from the Scrapbook as well.
on doSS
lock screen
-- push card
-- set lockmessages to true
-- go stack "Student Scrapbook"
-- if the result is "cancel" then popBack
-- call with Literacy, ANP, or Administration from courses *!*
put SSDialog("Scrapbook") into command
-- pop card
unlock screen
-- set lockmessages to false
-- checkBookmark
-- Don't use "quit" -- potential conflicts with home scripts
if command = "quit" then put SSQuit into command
if command = "Cancel" then exit doSS
else do command
end doSS
-- This is the dialog called from other stacks. Parameter "caller"
-- indicates whether this came from a course or the
-- scrapbook itself, so we'll know whether to disable certain items.
--
function SSDialog caller
global useSS,course
setWindow 1
NewWindow 232,296,centered,0,2,"SS Dialog",visible
NewItem picture,0,0,232,296,30078 -- item 1
if caller = "Scrapbook" or not useSS then
NewItem RectButton,25,72,81,120,NotActive, 10798,"dontinvert","Bookmark",noColor,"","" -- Bookmark, item 2
else
NewItem RectButton,25,72,81,120,Active, 21471,"invert","Bookmark",noColor,"","" -- Bookmark, item 2
end if
if caller = "Scrapbook" or caller = "Snapshot" or not useSS then
NewItem RectButton,92,72,143,120,InActive, 12864,"dontinvert","Note",noColor,"","" -- Note, item 3
else
NewItem RectButton,92,72,143,120,Active, 24100,"invert","Note",noColor,"","" -- Note, item 3
end if
if caller = "Scrapbook" or caller = "Snapshot" or not useSS then
NewItem RectButton,154,72,205,120,NotActive, 13842,"dontinvert","Snapshot",noColor,"","" -- Snapshot, item 4
else
NewItem RectButton,154,72,205,120,Active, 25338,"invert","Snapshot",noColor,"","" -- SnapShot, Item 4
end if
if useSS then
NewItem RectButton,28,131,79,179,Active, 4784,"invert","Index",noColor,"","" -- Index, Item 5
else
NewItem RectButton,28,131,79,179,inActive, 16776,"dontinvert","Index",noColor,"","" -- Index, Item 5
end if
if useSS then
NewItem RectButton,92,131,143,179,Active, 31126,"invert","Scrapbook",noColor,"","" -- Scrapbook Cover, Item 6
else
NewItem RectButton,92,131,143,179,inActive, 15844,"dontinvert","Scrapbook",noColor,"","" -- Scrapbook Cover, Item 6
end if
NewItem RectButton,154,131,205,179,Active, 27938,"invert","Glossary",noColor,"","" -- Glossary, Item 7
NewItem RectButton,25,190,81,238,Active, 27012,"invert","Search",noColor,"",""-- search, item 8
if course then
NewItem RectButton,92,190,143,238,Active, 26827,"invert","Map",noColor,"","" -- Map, item 9
else
NewItem RectButton,92,190,143,238,inActive, 16210,"dontinvert","Map",noColor,"","" -- Map, item 9
end if
if course then
NewItem RectButton,154,190,205,238,Active, 6388,"invert","MainMenu",noColor,"","" -- MainMenu, item 10
else
NewItem RectButton,154,190,205,238,inActive, 20917,"dontinvert","MainMenu",noColor,"","" -- MainMenu, item 10
end if
NewItem RectButton,123,264,123+80,264+14, Active,-1,"invert","Quit",noColor,"","" -- Quit, item 11
NewItem RectButton,29,264,29+80,264+14, active,-1,"invert","Cancel",noColor,"","" -- Cancel, item 12
set cursor to arrow
get Display (180,1 )
if it = "timeout" then
killWindow
return "cancel"
end if
put (item 4 of it) into command
if last char of command is "…" then delete last char of command
-- clean up
killWindow
return command
end SSDialog
-- This handler gets called from all stacks.
function makeNote
global identifier
put the short date && the long time into dateTime
setWindow 1
NewWindow 290,309,centered,0,1,"Note",visible
put "Student Services" & return & "Note" into theText
NewItem StaticText,59,3+3,192,45+3,theText, garamond,18,bold -- Item 1
NewItem RectButton,17,8,61,45,NotActive, 24100,"dontinvert",empty,noColor,"","" -- Note icon, Item 2
NewItem Rectangle,0,53,290,54,1 -- Item 3
NewItem StaticText,24,57+3,157,76+3, "Identifier:",Chicago,12,plain -- Item 4
NewItem StaticText,27,74+3,260,90+3,Identifier, Chicago,12,plain -- Item 5
NewItem Rectangle,24,76,268,95,1 --Item 6
NewItem StaticText,24,93+3,157,111+3, "Date/Time:",Chicago,12,plain -- Item 7
NewItem StaticText,28,110+3,268,126+3, dateTime,Chicago,12,plain -- Item 8
NewItem Rectangle,24,112,268,131,1 -- Item 9
NewItem StaticText,24,128+3,268,148+3, "Note: (Index Title; then comments)",Chicago,12,plain -- Item 10
NewItem EditText,24-1,148,268+1,260, "",Chicago,12,plain,HasScroll,hasCursor -- Item 11
NewItem RoundButton,174,269,272,300, "Save",13,noCommand,"" -- Item 12
NewItem RoundButton,75,273,165,296, "Cancel",charToNum("."),Command,"" -- Item 13
NewItem RectButton,17,270,61,300, Active,1310,"invert",empty,noColor,"","" -- SS Item 14
set cursor to arrow
get Display(180,1)
if it = "timeout" then
killWindow
return "cancel"
end if
if item 2 of it is 14 then
killWindow
return "SS"
end if
if item 4 of it is "Cancel" then
-- clean up
killWindow
return "Cancel" -- exit makeNote
end if
get GetValue ("Item",11)
-- returns "edittext",the contents
delete item 1 of it
put it into CommentString -- includes commas this way
-- clean up
killWindow
set cursor to watch
-- The first card of the bg "notes" is a blank "template" card which
-- is never seen and never deleted. Each card made goes immediately
-- after it so that the first card will be the most recent (as in
-- the index list.) Template has GrayPrev showing and GrayNext not.
push card
go cd index
-- strip trailing returns so "list holder" doesn't have empty lines
repeat
get last char of commentString
if it = return then delete last char of commentString
else exit repeat
end repeat
if the number of chars of commentString > 30 then
put char 1 to 30 of commentstring & "…" into summary
else
put CommentString into summary
end if
put "Note " & dateTime & "," & summary & return into temp
put temp after fld "list holder"
createList
go first cd of bg "notes" -- the template card
put the userLevel into saveLevel
set userLevel to 5
doMenu "copy card"
doMenu "paste card" -- so most recent card is at front of section
set cantdelete of this cd to false
set the name of this card to char 1 to 24 of temp
put CommentString into fld "Note"
put identifier into fld "Identifier"
put dateTime into fld "Date/Time"
fixNoteArrows
set userLevel to saveLevel
pop card
return "successful"
end makeNote
-- this handler is called from all stacks
function makeBookMark
global identifier,whereWeCameFrom
put the short date && the long time into dateTime
setWindow 1
NewWindow 290,212,centered,0,1,"Bookmark Dialog",visible
put "Student Services" & return & "Bookmark" into theText
NewItem StaticText,59,3+3,192,45+3,theText,garamond,18,bold -- item 1
NewItem RectButton,17,8,61,45, "NotActive",21471,"dontinvert",empty,noColor,"","" -- bookmark item 2
NewItem Rectangle,0,53,290,54,1 -- item 3
NewItem StaticText,24,57+3,157,76+3, "Identifier:",Chicago,12,plain -- item 4
NewItem StaticText,27,74+3,260,90+3, identifier,Chicago,12,plain -- item 5
NewItem Rectangle,24,76,268,95,1 -- item 6
NewItem StaticText,24,93+3,157,111+3, "Date/Time:",Chicago,12,plain -- item 7
NewItem StaticText,27,110+3,268,126+3, dateTime,Chicago,12,plain -- item 8
NewItem Rectangle,24,112,268,131,1 -- item 9
NewItem StaticText,24,128+3,268,148+3, "Title of Bookmark (for Index):",Chicago,12,plain -- item 10
NewItem EditText,24-1,146,268+1,167,empty, Chicago,12,plain,NoScroll,hasCursor -- item 11
NewItem RoundButton,174,173,272,204, "Save",13,noCommand,"" -- item 12
NewItem RoundButton,75,177,165,200, "Cancel",charToNum("."),Command,"" -- item 13
NewItem RectButton,16,175,62,207, Active,1310,"invert",empty,noColor,"","" -- SS item 14
set cursor to arrow
get Display (180,1)
if it = "timeout" then
delete last item of whereWeCameFrom
killWindow
return "cancel"
end if
if item 2 of it is 14 then
delete last item of whereWeCameFrom
killWindow
return "SS"
end if
if item 4 of it is "Cancel" then
delete last item of whereWeCameFrom
-- clean up
killWindow
return "Cancel"
end if
get GetValue ("Item",11)
delete item 1 of it
put it into CommentString -- rest of it may include commas
-- clean up
killWindow
set cursor to watch
push card
if the number of chars of commentString > 30 then
put char 1 to 30 of commentstring & "…" into summary
else
put CommentString into summary
end if
put "Bookmark " & dateTime & "," & summary & return into temp
put temp after fld "list holder"
createList -- in stack script
go first cd of bg "Bookmarks" -- template
put the userLevel into saveLevel
set userLevel to 5
domenu new card
set userLevel to saveLevel
set cantModify of this cd to false
set the name of this card to char 1 to 24 of temp
put CommentString into fld "Comment"
put identifier into fld "Identifier"
put dateTime into fld "Date/Time"
put last item of whereWeCameFrom into fld pathname
delete last item of whereWeCameFrom
pop card
return "successful"
end makeBookMark
-- this handler is called from all stacks
function makeSnapShot
global snapStack,snapFile,scrapFile
put 700000 into maxSnapSize --** 700000 for final
global identifier,whereWeCameFrom,snapStack
put the short date && the long time into dateTime
setWindow 1
NewWindow 290,250,centered,0,1,"Bookmark Snapshot",visible
put "Student Services" & return & "Snapshot" into theText
NewItem StaticText,59,3+3,192,45+3,theText, garamond,18,bold -- item 1
NewItem RectButton,17,8,61,45, NotActive,25338,"dontinvert","",noColor,"","" -- SnapShot, item 2
NewItem Rectangle,0,53,290,54,1 -- item 3
NewItem StaticText,24,57+3,157,76+3, "Identifier:",Chicago,12,plain -- item 4
NewItem StaticText,27,74+3,260,90+3, Identifier,Chicago,12,"Note…" -- item 5
NewItem Rectangle,24,76,268,95,1 -- item 6
NewItem StaticText,24,93+3,157,111+3, "Date/Time:",Chicago,12,plain -- item 7
NewItem StaticText,28,110+3,268,126+3, dateTime,Chicago,12,plain -- item 8
NewItem Rectangle,24,112,268,131,1 -- item 9
NewItem StaticText,24,128+3,268,148+3, "Title of Snapshot (for Index):",Chicago,12,plain -- item 10
NewItem EditText,24-1,148-1,268+1,165+5, "",Chicago,12,plain,NoScroll,hasCursor -- item 11
NewItem RoundButton,178,177,268,199, "Print",chartoNum("P"),Command,"" -- item 12
NewItem RoundButton,178-4,210-4,268+4,232+4, "Save",13,noCommand,"" -- item 13
NewItem RoundButton,75,210,165,232, "Cancel",charToNum("."),Command,"" -- item 14
NewItem RectButton,17,203,61,232, Active,1310,"invert","",noColor,"","" -- SS item 15
set cursor to arrow
get Display(180,1)
if item 2 of it is 15 then
delete last item of whereWeCameFrom
killWindow
return "SS"
end if
if item 4 of it is "Print" then
go last item of whereWeCameFrom
delete last item of whereWeCameFrom
domenu print card
--cleanUpSnapshot
killWindow
return "Cancel"
end if
if item 4 of it is "Cancel" then
delete last item of whereWeCameFrom
--cleanUpSnapshot
killWindow
return "Cancel"
end if
get GetValue("Item",11)
delete item 1 of it
put it into CommentString -- get everything, including commas
killWindow
set cursor to busy
if the number of chars of commentString > 30 then
put char 1 to 30 of commentstring & "…" into summary
else
put CommentString into summary
end if
put "Snapshot " & dateTime & "," & summary & return into temp
put "snapshots" && snapStack into currentSnapStack
get the size of currentSnapStack
if it > maxSnapSize or snapStack = 0 then
get the diskSpace
if it < 1400000 then -- two floppies worth
if it > 800000 then
answer "Warning: Disk is almost full."
end if
if it < 800000 then -- two floppies worth
answer "Disk is too full for more snapshots."
return "cancel"
end if
end if
-- make new snapshot stack
get myPathName() -- pathname to this folder
put it into FolderPath
put FolderPath &"Snapshots" && snapStack+1 into newFile
set cursor to busy
get kCopyFile(snapFile,newFile)
if char 1 to 2 of it ≠ "ok" then -- oopsie
answer "Couldn't make new snapshot stack…" && it & "."
return "cancel"
end if
add 1 to snapStack
put snapStack into cd fld "snapshots" of cd "index"
if snapStack > 1 then
go stack ("snapshots" && snapstack-1)
go last
hide cd btn "grayNext"
end if
end if
go first cd of stack "snapshots" && snapStack -- template
put the userLevel into saveLevel
set userLevel to 5
set cursor to busy
doMenu copy card
doMenu paste card
-- hide the tab buttons
hide cd btn "cover"
hide cd btn "index"
hide cd btn "notes"
hide cd btn "glossary"
set cantDelete of this cd to false
set the name of this card to char 1 to 24 of temp
get fixSnapArrows()
set cursor to busy
go last item of whereWeCameFrom
-- Copy fields and picture
--flash
put the visible of msg into visimsg
put the visible of tool window into visitool
put the visible of pattern window into visipattern
-- hide windoids so picture won't be obscured
hide msg
hide tool window
hide pattern window
hide menuBar -- can't save previous state
unlock screen
unlock screen -- do it twice, since there were two dialog boxes.
lock screen -- force refresh again
put empty into fieldHolder
repeat with i = 1 to the number of cd flds
set cursor to busy
if the visible of cd fld i then
put "cd fld id " & the id of cd fld i & "," after fieldHolder
hide cd fld i
end if
end repeat
repeat with i = 1 to the number of flds
set cursor to busy
if the visible of fld i then
put "fld id " & the id of fld i & "," after fieldHolder
hide fld i
end if
end repeat
unlock screen
lock screen -- force refresh with fields gone
RectToClip 0,0,512,342
if the number of items in fieldHolder > 0 then
repeat with i = 1 to the number of items in fieldHolder
show item i of fieldHolder
end repeat
end if
set the visible of msg to visimsg
set the visible of tool window to visiTool
set the visible of pattern window to visiPattern
unlock screen
lock screen -- so it looks OK for student again
set cursor to busy
go back -- to Snapshot stack
domenu paste picture
-- uncover control panel
choose select tool
drag from 478,71 to 512,342
domenu cut picture
drag from 478,71 to 512,342
domenu transparent
choose browse tool
put last item of whereWeCameFrom into fld "pathname"
go last item of whereWeCameFrom
if the number of items in fieldHolder > 0 then
repeat with i = 1 to the number of items in fieldHolder
set cursor to busy
push card -- course card
show item i of fieldHolder
select item i of fieldHolder
domenu copy field
go back -- to Snapshot stack
type "v" with commandKey,shiftKey -- paste field & contents
set the script of cd fld i to empty
pop card -- back to course
end repeat
end if
go cd "index" of scrapFile
-- put entry into index field
put temp after fld "list holder"
createList
go last item of whereWeCameFrom
delete last item of whereWeCameFrom
set userLevel to saveLevel
choose browse tool
return "Successful"
end makeSnapShot
on createList
global SelectedText,SelectLine
set cursor to watch
put empty into SelectLine
put empty into SelectedText
if the hilite of btn "By Type" is true then
lock screen
put empty into fld list
repeat with i = the number of lines of fld "list holder" down to 1
if the hilite of btn "bookmarks" is true then
if word 1 of line i of fld "list holder" is "bookmark" then
put line i of fld "list holder" & return after fld list
end if
end if
end repeat
repeat with i = the number of lines of fld "list holder" down to 1
if the hilite of btn "notes" is true then
if word 1 of line i of fld "list holder" is "note" then
put line i of fld "list holder" & return after fld list
end if
end if
end repeat
repeat with i = the number of lines of fld "list holder" down to 1
if the hilite of btn "snapshots" is true then
if word 1 of line i of fld "list holder" is "snapshot" then
put line i of fld "list holder" & return after fld list
end if
end if
end repeat
else
lock screen
put empty into fld list
repeat with i = the number of lines of fld "list holder" down to 1
if the hilite of btn "bookmarks" is true then
if word 1 of line i of fld "list holder" is "bookmark" then
put line i of fld "list holder" & return after fld list
end if
end if
if the hilite of btn "notes" is true then
if word 1 of line i of fld "list holder" is "note" then
put line i of fld "list holder" & return after fld list
end if
end if
if the hilite of btn "snapshots" is true then
if word 1 of line i of fld "list holder" is "snapshot" then
put line i of fld "list holder" & return after fld list
end if
end if
end repeat
end if
set scroll of fld "list" to 0
unlock screen with barn door open
end createList
on retrieveBookmark theCard
global course,btnStatus,answerTracker
if not course then
answer "Can't go to bookmark. Course is not installed."
exit retrieveBookMark
end if
-- set lockmessages to true
lock screen
go cd theCard
if the short name of this card is "index" then
answer "Couldn't find bookmark."
else
go fld "pathname"
put empty into btnStatus
put empty into answerTracker
send openCard to this card
unlock screen with iris open to black
end if
end retrieveBookMark
on retrieveNote theCard
lock screen
go cd theCard
if the short name of this card is "index" then
answer "Couldn't find note."
else
unlock screen with iris open to black
end if
end retrieveNote
on retrieveSnapshot theCard
global snapStack
set cursor to watch
lock screen
push card
repeat with i = 1 to snapStack
go stack "Snapshots" && i
go cd theCard
if the result ≠ "no such card" then
pop card into trash -- stay put
unlock screen with iris open to black
exit retrieveSnapshot
end if
end repeat
pop card
answer "Couldn't find Snapshot."
end retrieveSnapshot
function deleteSnapStack stackNum
get myPathName()
put "Snapshots" && stackNum after it
put it into deleteThis
put deletefile(deletethis) into returnedthis
return returnedThis
-- returns 0 if ok, < 0 if OsErr, else other error
end deleteSnapStack
on makeNewSnapStack
global SnapStack
get myPathName() -- pathname to this folder
put it into FolderPath
put FolderPath &"Snapshots" && snapStack into oldFile
put FolderPath &"Snapshots" && snapStack+1 into newFile
get kCopyFile(oldFile,newFile)
if char 1 to 2 of it ≠ "ok" then answer it -- oopsie
add 1 to snapStack
put snapStack into cd fld "snapshots" of cd "index"
end makeNewSnapStack
on goWhere
global WhereWeCameFrom
if whereWeCameFrom is not empty then
set lockMessages to true
lock screen
set cursor to watch
go last item of whereWeCameFrom
set lockMessages to false
send opencard to this cd --*!* for literacy only
delete last item of whereWeCameFrom
unlock screen with visual dissolve
end if
end goWhere
on goSnapshot
global snapStack,useSS
if not useSS then exit goSnapShot
if snapStack = 0 then
pop card
answer "There are no Snapshots."
exit goSnapshot
end if
set cursor to watch
lock screen
-- don't lock messages
go stack "Snapshots 1" -- first stack we made
if the result is "cancel" then
pop cd -- go back to caller
answer "Couldn't find Snapshots."
exit goSnapshot
end if
if (the number of cds of this bg) = 1 then
pop card
answer "There are no Snapshots."
exit goSnapshot
else
pop cd into trash
unlock screen with visual dissolve
end if
end goSnapshot
---------------------- PROGRAMMER'S UTILITIES ------------------------
on cleanUp
global snapstack
go cd 1
put empty into cd fld "hidden name"
put empty into cd fld "myname"
put empty into cd fld "gfindWhatHolder"
go cd 2
set hilite of cd btn "bookmarks" to true
set hilite of cd btn "snapshots" to true
set hilite of cd btn "notes" to true
get cd fld "snapshots" of cd "index"
put it into snapStack
send clearScrapbook to cd btn "delete…"
send "hidesecret" to cd 2
go cd "glossary"
clear
go cd 1
send mouseUp to cd btn "hide secret"
doMenu "compact stack"
end cleanUp
-- part 1 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=28 top=39 right=58 bottom=146
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: title
-- part 8 (field)
-- low flags: 01
-- high flags: 0001
-- rect: left=23 top=29 right=315 bottom=471
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 256
-- line height: 21
-- part name: lines
-- part 19 (field)
-- low flags: 00
-- high flags: 2007
-- rect: left=30 top=95 right=269 bottom=462
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 0
-- line height: 21
-- part name: list holder
-- part 9 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=28 top=33 right=69 bottom=234
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 24
-- style flags: 256
-- line height: 32
-- part name: title
-- part 10 (field)
-- low flags: 01
-- high flags: 0007
-- rect: left=30 top=95 right=269 bottom=462
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 0
-- line height: 21
-- part name: list
----- HyperTalk script -----
on mouseDown
global SelectedText,SelectLine
lock screen
if me is empty then
update
exit to hyperCard
end if
set LockText of me to false
click at the mouseLoc
put the selectedLine into SelectLine
set LockText of me to true
unlock screen
if the MouseLoc is not within the rect of me then
put empty into selectedText
put empty into selectLine
removeEmptyLines
update
exit to hypercard
end if
put word 2 of SelectLine into clickLine
click at 0,0
removeEmptyLines
if clickLine > number of lines in me then
put empty into selectedText
put empty into selectLine
click at 0,0
removeEmptyLines
update
exit to HyperCard
end if
if the value of selectLine is empty or the value of selectLine is "none." then
put empty into selectedText
put empty into selectLine
click at 0,0
removeEmptyLines
update
exit to hypercard
end if
set the textfont of btn "retrieve" to chicago
set the autohilite of btn "retrieve" to true
set the textfont of btn "delete…" to chicago
set the autohilite of btn "delete…" to true
-- This highlights the whole line, or multiple lines if the entry
-- is too long for one line.
select char 1 + length(line 1 to clickLine of target) - length (line clickLine of target) to 1 + length(line 1 to clickLine of target) of me
if the selection is empty then
select empty
put empty into SelectLine
put empty into SelectedText
set the textfont of btn "retrieve" to sydney
set the autohilite of btn "retrieve" to false
exit to HyperCard
end if
put the selection into SelectedText
if the mouseclick then
if word 1 of SelectedText is "Bookmark" then
put (char 1 to 24 of the selection) into theCard
retrieveBookmark theCard
exit to hyperCard
end if
if word 1 of SelectedText is "note" then
put (char 1 to 24 of the selection) into theCard
retrieveNote theCard
exit to hyperCard
end if
-- it's a snapshot, gotta find it
put (char 1 to 24 of the selection) into theCard
retrieveSnapshot theCard
end if
end mouseDown
on removeEmptyLines
repeat with n = the number of lines of fld "list" down to 1
if line n of fld "list" is empty then
delete line n of fld "list"
else
exit repeat
end if
end repeat
end removeEmptyLines
-- part 11 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=477 top=258 right=284 bottom=509
-- title width / last selected line: 0
-- icon id / first selected line: 4250 / 4250
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return
----- HyperTalk script -----
on mouseUp
goWhere
end mouseUp
-- part 12 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=121 top=317 right=333 bottom=185
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Index
----- HyperTalk script -----
on mouseUp
if the short name of this cd = "index" then exit mouseUP
visual dissolve
go cd 2
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=36 top=315 right=331 bottom=100
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Cover
----- HyperTalk script -----
on mouseUp
if the short name of this cd is "Scrapbook cover" then exit mouseUP
visual dissolve
go first
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=206 top=319 right=335 bottom=270
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Notes
----- HyperTalk script -----
on mouseUp
if (the number of cds of bg "notes") > 1 then
visual dissolve
go cd 2 of bg "notes"
else
answer "There are no notes."
end if
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=291 top=321 right=337 bottom=355
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Snapshots
----- HyperTalk script -----
on mouseUp
push card -- so we can get back if snapshot is missing
goSnapShot
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=376 top=323 right=339 bottom=440
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Glossary
----- HyperTalk script -----
on mouseUp
set cursor to watch
lock screen
go cd "glossary"
unlock screen with dissolve
end mouseUp
-- part 20 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=493 top=319 right=341 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 1237 / 1237
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: next
----- HyperTalk script -----
on mouseUp
lock screen
go next
unlock screen with wipe left
end mouseUp
-- part 21 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=480 top=319 right=341 bottom=497
-- title width / last selected line: 0
-- icon id / first selected line: 1238 / 1238
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: prev
----- HyperTalk script -----
on mouseUp
lock screen
go prev
unlock screen with wipe right
end mouseUp
-- part 22 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=481 top=142 right=172 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 1310 / 1310
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Student Services
----- HyperTalk script -----
on mousedown
saveIdentifier
SSpopUp
end mousedown
on mouseup
if the mouseloc is not within the rect of me then exit to hyperCard
saveidentifier
doSS
end mouseup
-- part 23 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=483 top=176 right=204 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 162 / 162
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseUp
help
end mouseUp
-- part 28 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=481 top=297 right=318 bottom=509
-- title width / last selected line: 0
-- icon id / first selected line: 1236 / 1236
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Index
----- HyperTalk script -----
on mouseUp
visual dissolve
go cd "Index"
end mouseUp
-- part 29 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=482 top=296 right=318 bottom=509
-- title width / last selected line: 0
-- icon id / first selected line: 1235 / 1235
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Mask Index
----- HyperTalk script -----
on mouseUp
-- doNothing
end mouseUp